package com.example.finalwork2.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.finalwork2.entity.AlertLevel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface IAlertLevelMapper extends BaseMapper<AlertLevel> {

    @Select("SELECT * FROM alert_level WHERE rule_id = #{ruleId}")
    List<AlertLevel> getByRuleId(Long ruleId);
}
